package day04.niming;

public class Nm03 {
    public static void main(String[] args) {
useshow(new ShowHandler() {
    @Override
    public void show() {
        System.out.println("我是内部类的show");
    }
});
useshow(()->{
    System.out.println("我是类的show");
});
    }

    public static void useshow(ShowHandler showHandler) {
        showHandler.show();
    }
}

interface ShowHandler {
    void show();
}
